<table>
	<tr>
		<td>
			<a class="button" href="<?php echo $this->baseUrl() ?>/contact/item/type/<?php echo $this->type ?>">
			<a class="button" href="<?php echo $this->baseUrl() ?>/contact/item/type/<?php echo $this->type ?>">
				<div style="background:url(<?php echo $this->baseUrl() ?>/public/images/plus_16.png);" class="inb">Dodaj <?php echo $this->yih2 ?></div>
			</a>
		</td>
	</tr>
</table>

<div class="bglist">
	<div class="bglistq">
		<table cellspacing="1" cellpadding="6" class="tlist">
			<tr>
				<th>Id</th>
				<th>Miasto</th>
				<th>Akcje</th>
			</tr>
			<?php foreach( $this->list as $item ) { ?>
			<tr>
				<td><?php echo $item['c_id'] ?></td>
				<td><?php echo $item['city_name']; ?></td>
				<td>
					<a href="<?php echo $this->baseUrl() ?>/contact/item/type/<?php echo $this->type ?>/id/<?php echo $item['c_id'] ?>" class="edit">Edytuj</a>
					<a onclick="return confirmDelete();" href="<?php echo $this->baseUrl() ?>/contact/delete/type/<?php echo $this->type ?>/id/<?php echo $item['c_id'] ?>" class="delete">Usuń</a>
				</td>
			</tr>
			<?php } ?>
		</table>
	</div>
</div>
<?php  echo $this->render('global/pager.phtml'); ?>